import request from '@/utils/request'

// 查询万寿宫-红包活动配置列表
export function listHbpz(query) {
  return request({
    url: '/wsg/hbpz/list',
    method: 'get',
    params: query
  })
}

// 查询万寿宫-红包活动配置详细
export function getHbpz(id) {
  return request({
    url: '/wsg/hbpz/' + id,
    method: 'get'
  })
}

// 新增万寿宫-红包活动配置
export function addHbpz(data) {
  return request({
    url: '/wsg/hbpz',
    method: 'post',
    data: data
  })
}

// 修改万寿宫-红包活动配置
export function updateHbpz(data) {
  return request({
    url: '/wsg/hbpz',
    method: 'put',
    data: data
  })
}

// 删除万寿宫-红包活动配置
export function delHbpz(id) {
  return request({
    url: '/wsg/hbpz/' + id,
    method: 'delete'
  })
}

// 导出万寿宫-红包活动配置
export function exportHbpz(query) {
  return request({
    url: '/wsg/hbpz/export',
    method: 'get',
    params: query
  })
}